# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=mobpass
pkgver=0.2
pkgrel=6
pkgdesc="A mobile interface for gopass"
url="https://git.sr.ht/~anjan/mobpass"
arch="noarch !armhf" # missing dependencies
options="!check"     # No test suite
license="GPL-3.0-or-later"
depends="python3 py3-qt5 qt5-qtquickcontrols qt5-qtquickcontrols2 gopass py3-fuzzyfinder"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~anjan/mobpass/archive/v$pkgver.tar.gz"
builddir="$srcdir/"$pkgname-v$pkgver

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
	install -Dm644 mobpass.desktop "$pkgdir"/usr/share/applications/mobpass.desktop
}

sha512sums="
4e302df637eece3da35014177b99d2e1b49247d573fd302b4defad6e80da1136761d00d48ab93f7f5ed06efc727d194ad1b253a7d09576010b8e6e9451355186  mobpass-0.2.tar.gz
"
